#include <stdio.h>
 
int main()
{
    int t1 , t2 , nextTerm , number , n=1 ;
 
    printf("please enter two number you want at the beginning :\n");
    scanf("%d %d", &t1,&t2);
    printf("and the number of series you want to have\n");
    scanf("%d",&number);
    printf("The Fibonacci series is : %d, %d, ", t1, t2);
 
    nextTerm = t1 + t2;
 
    while(n < number-1)
    {
        printf("%d, ",nextTerm);
        t1 = t2;
        t2 = nextTerm;
        nextTerm = t1 + t2;
        n=++n;
    }
    
    return 0;
}